package com.lenl.other;

import java.io.*;

/**
 * @author Lenl
 * @version v1.0
 * @create 2022-05-04 11:10
 * @description
 */
public class Test {
    public static void main(String[] args) {
        String path="E:\\项目实践\\U盘保全程序Java\\UDriveProjectWorkSpace\\Server\\BackProgram\\fileindex\\25b37e9c5d16950b58be9b6f1645acf6.findex";
//        try {
//            read(path,1);
//            read(path,2);
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
        int x=Integer.parseInt("123");
        System.out.println(x);

    }

    public static void read(String path,int num) throws IOException {
        System.out.println("第"+num+"次");
        BufferedReader bufferedReader=new BufferedReader(new InputStreamReader(new FileInputStream(path),"utf-8"));
        int computeAllNum=Integer.parseInt(bufferedReader.readLine().trim());
        System.out.println("num="+computeAllNum);
        while (true){
            String content= bufferedReader.readLine();
            if(content!=null&&content.trim()!=""){

            }else{
                break;
            }
        }
    }
}
